package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.damain.Category;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public interface CategoryMapper extends BaseMapper<Category> {
    List<Category> findall();
//新增
    void save(Category category);
//修改分类
    void uodate(Category category);
//查询菜品
    Integer categoryDishByCstegoryId(Long id);
//查询内部分类
    Integer categorySetmealByCategoryId(Long id);
//删除
    void delete(Long id);
}
